import React, { PureComponent } from 'react';
import noCouponIcon from '../../../assets/images/empty/coupon.png';

class BaseComponent extends PureComponent {
  renderFooter = (hasMore) => {
    return (
      <div className="list-footer">—  {hasMore ? '正在加载' : '没有更多了'}  —</div>
    );
  }

  renderEmpty = (text = '没有相关结果') => {
    return (
      <div className="list-empty">
        <img src={noCouponIcon} alt="" className="icon" />
        <p>{text}</p>
      </div>
    );
  }

  render() {
    return <div />;
  }
}

export default BaseComponent;
